Executes a script saved in an external file.
Syntax:
<script_file>(ôScript file nameö, Wait for script to finish)
Script file name:
Script file to run. There are these file types supported:
.bss û Basic Script file
.bsx û encoded Basic Script file
.vbs û VB Script file
.js - Java Script file
The file should be either full path (e.g., "c:\myscripts\script1.bss") or just file name (e.g., "script.bss"). Partial or relative paths (e.g., "..\scripts\script.bss") are not supported at this time. All the scripts that you call using just the name (e.g., "script.bss") must be saved in the "scripts" directory. In the ôBasic Scriptö scripts, it is possible to use '#Uses "some-file" directives that allows to use symbols defined in other modules. In the "uses" directives, both BSS and BSX files can be used (they also have to be in "scripts" directory or full path must be supplied).
Wait
for script to finish:
If equal to 1, the macro waits until script execution is finished.
If equal to 0, the macro continues execution without waiting for script to
finish.
Example:
<#> This macro runs selected script
<#>
<cmds>
<var_oper>(vScript,"*.bss",SELECT_FILE,"Select Script To Run","", "0")
<if_str>("_vCanceled==1") <exitmacro> <endif>
<script_file>("vScript",0)